package com.dotflat.xj.task;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 巡检统计定时任务 xj_data
 * 
 * @author #
 * @date 2021-11-25
 */
@Component
@Configuration      //1.主要用于标记配置类，兼备Component的效果。
@EnableScheduling   // 2.开启定时任务
public class TargetCountRecordTask
{


    //3.添加定时任务
//    @Scheduled(cron = "0 5 0 * * ?")
    //或直接指定时间间隔，例如：5秒
//    @Scheduled(fixedRate=5000)
    @Scheduled(cron = "0 59 23 * * ?")
    private void configureTasks() {
//        targetCountRecordService.getAllTargetCountRecord();
    }
}
